package com.ftx.domain.query;

import java.util.Date;

/**
 * Created by fengtingxin on 2019/6/23.
 */
public class ArticleQuery {

    /**
     * 标题
     */
    private String title;

    /**
     * 阅读量
     */
    private Integer readingVolume;

    /**
     * 发布时间
     */
    private Date publishDate;

    /**
     * 标签 (以逗号分隔就行)
     */
    private String tagIds;

    /**
     * 所属类目id
     */
    private Long cid;

    /**
     * 文章内容
     */
    private String content;

    /**
     * 文章状态(1:暂存，2：发布完成)
     */
    private Integer articleStatus;

    /**
     * 文章简介
     */
    private String articleIntroduce;

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public Integer getReadingVolume() {
        return readingVolume;
    }

    public void setReadingVolume(Integer readingVolume) {
        this.readingVolume = readingVolume;
    }

    public Date getPublishDate() {
        return publishDate;
    }

    public void setPublishDate(Date publishDate) {
        this.publishDate = publishDate;
    }

    public String getTagIds() {
        return tagIds;
    }

    public void setTagIds(String tagIds) {
        this.tagIds = tagIds;
    }

    public Long getCid() {
        return cid;
    }

    public void setCid(Long cid) {
        this.cid = cid;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public Integer getArticleStatus() {
        return articleStatus;
    }

    public void setArticleStatus(Integer articleStatus) {
        this.articleStatus = articleStatus;
    }

    public String getArticleIntroduce() {
        return articleIntroduce;
    }

    public void setArticleIntroduce(String articleIntroduce) {
        this.articleIntroduce = articleIntroduce;
    }

    @Override
    public String toString() {
        final StringBuilder sb = new StringBuilder("ArticleQuery{");
        sb.append("title='").append(title).append('\'');
        sb.append(", readingVolume=").append(readingVolume);
        sb.append(", publishDate=").append(publishDate);
        sb.append(", tagIds='").append(tagIds).append('\'');
        sb.append(", cid=").append(cid);
        sb.append(", content='").append(content).append('\'');
        sb.append(", articleStatus=").append(articleStatus);
        sb.append(", articleIntroduce='").append(articleIntroduce).append('\'');
        sb.append('}');
        return sb.toString();
    }
}
